<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page import="school.dao.*" %>
<%@ page import="school.entity.*" %>
 <%
    //out.print("<h1>欢迎登录成功！<h1/>");
    //out.print("<script>alert('欢迎登录成功！')</script>");
    //查看成绩
    
    MySqlStudentDaoImpl msd=new MySqlStudentDaoImpl();
    String sql="select * from examresult";
    List<examresult> glist= msd.queryScore(sql);
    out.print("学号"+" "+"成绩");
    for(examresult a:glist){ 
	   %> 
	   <br>
	    <%
	   out.print(a.getSt_id()+" "+a.getScore());

   }
    %>